package com.ktwlrj.core.util.xpoi.model;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 数据源实体
 *
 * @author zhouxuanhong
 * @date 2019-08-02 12:20
 * @since JDK1.8
 */
@Data
public class DataSource implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自定义字段
     */
    private JSONObject fieldMap;

    /**
     * 数据源
     */
    private List<JSONObject> dsList;

    public DataSource(List<JSONObject> dsList) {
        this.dsList = dsList;
    }

    public DataSource(JSONObject fieldMap, List<JSONObject> dsList) {
        this.fieldMap = fieldMap;
        this.dsList = dsList;
    }
}
